<meta charset="utf-8">
<div class="map"></div> 
<button class="start">开始起飞</button>
<button class="stop">停止坠机</button>
<script src="./snakeFood.js"></script>
<script src="./snake1.js"></script>
<script src="./snakeMap.js"></script>
<script src="./snakeSnake.js"></script>
<script>
let g=new Game('.map')

const start = document.querySelector('.start')
// const stop = document.querySelector('.stop')
start.addEventListener('click', () => g.start())
</script>
                                  